package com.yix.file;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class MethodTest {
    public static void main(String[] args) throws IOException {
        String path = "D:\\develop\\project\\nbsg\\baotou\\btBuss\\变更申请表73ded197-e133-42ca-84b0-ca69efcb964a.docx";
        File file = new File(path);
        FileInputStream fileInputStream = new FileInputStream(file);
        System.out.println(file.exists());
        fileInputStream.close();
        System.out.println(file.delete());
        System.out.println("删除后"+file.exists());
    }
}
